//
//  MMHeader.h
//  MMCustomKit
//
//  Created by john on 2021/12/30.
//  Copyright © 2021 John. All rights reserved.
//

#ifndef MMHeader_h
#define MMHeader_h

#import "UIDevice+SSAdd.h"


/**
 聊天界面底部的输入框视图
 */

#define SSChatKeyBoardInputViewH      55     //输入部分的高度
#define SSChatKeyBordBottomHeight     220    //底部视图的高度

//键盘总高度
#define SSChatKeyBordHeight   SSChatKeyBoardInputViewH + SSChatKeyBordBottomHeight


#define SSChatLineHeight        0.5          //线条高度
#define SSChatBotomTop          SCREEN_HEIGHT-SSChatBotomHeight-SafeAreaBottom_Height

//底部视图的顶部
#define SSChatBtnSize           40           //按钮的大小
#define SSChatLeftDistence      5            //左边间隙
#define SSChatRightDistence     5            //左边间隙
#define SSChatBtnDistence       16           //控件之间的间隙
#define SSChatTextHeight        40           //输入框的高度
#define SSChatTextMaxHeight     100           //输入框的最大高度
#define SSChatTextWidth      SCREEN_WIDTH - (3*SSChatBtnSize + 5* SSChatBtnDistence)                       //输入框的宽度


#define SSChatTBottomDistence   7.5            //输入框上下间隙
#define SSChatBBottomDistence   12.5          //按钮上下间隙


#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define DEVICE_STATUS_HEIGHT [ToolsManager getStatusHeight]
#define TabbarHeight self.tabBarController.tabBar.frame.size.height
#define WEAKSELF __weak __typeof(&*self)weakSelf = self;

#define kIs_iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define kIs_iPhoneX kScreenWidth >=375.0f && kScreenHeight >=812.0f&& kIs_iphone
#define SCREEN_BOUNDS   [UIScreen mainScreen].bounds //屏幕bounds

#define SafeAreaTop_Height     [UIDevice getSafeAreaTopHeight]
#define SafeAreaBottom_Height  [UIDevice getSafeAreaBottomHeight]

#endif /* MMHeader_h */
